import request from '@/utils/request'

// 查询扣款金额设置列表
export function listDeductionAmountSettings(query) {
  return request({
    url: '/compensationManagement/deductionAmountSettings/list',
    method: 'get',
    params: query
  })
}

// 查询扣款金额设置详细
export function getDeductionAmountSettings(id) {
  return request({
    url: '/compensationManagement/deductionAmountSettings/' + id,
    method: 'get'
  })
}

// 新增扣款金额设置
export function addDeductionAmountSettings(data) {
  return request({
    url: '/compensationManagement/deductionAmountSettings',
    method: 'post',
    data: data
  })
}

// 修改扣款金额设置
export function updateDeductionAmountSettings(data) {
  return request({
    url: '/compensationManagement/deductionAmountSettings',
    method: 'put',
    data: data
  })
}

// 删除扣款金额设置
export function delDeductionAmountSettings(id) {
  return request({
    url: '/compensationManagement/deductionAmountSettings/' + id,
    method: 'delete'
  })
}
